package org.rcy.ruicingmarket.goods;

import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;
import org.rcy.framework.api.entity.PageQueryRequest;
import org.springdoc.api.annotations.ParameterObject;

import java.util.Date;
import java.util.List;

/**
 * @author RuicyWu
 * @Date 2021/12/30 11:47
 */
@Data
@ParameterObject
public class GoodsPageQueryRequest extends PageQueryRequest {
    @Parameter(description = "商品名")
    private String name; //商品名称
    @Parameter(description = "商家ID")
    private Long sellerId;//商家id
    @Parameter(description = "分类ID")
    private Long cid; //分类id
    @Parameter(description = "商品价格区间上界")
    private Integer priceMin; //价格区间下界
    @Parameter(description = "商品价格区间下界")
    private Integer priceMax; //价格区间上界
    @Parameter(description = "时间区间下界")
    private Date startTime;//时间区间下界
    @Parameter(description = "时间区间上界")
    private Date endTime;//时间区间上界
    @Parameter(description = "库存量")
    private Integer stock;//库存量
    @Parameter(description = "月销量区间上界")
    private Integer monthlySalesMax;//月销量区间上界
    @Parameter(description = "月销量区间下界")
    private Integer monthlySalesMin;//月销量区间下界
    @Parameter(description = "是否热销")
    private Boolean sellWell = false;//热销
    private List<Long> ids;
}
